//
//  Fighter.h
//  airfight
//
//  Created by aaron more on 12-8-24.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_Fighter_h
#define airfight_Fighter_h

#include "cocos2d.h"
#include "Bullet.h"

USING_NS_CC;

class Fighter : public CCObject
{
protected:
    
    int m_pFighterId;  //fighter id
    int m_pBlood; //血量
    int m_pArmor; //护甲
    int m_pSpeed;  //移动速度
    std::string m_pRes; //资源
    CCArray* m_pbullets; //子弹序列
    

    
public:
    
    Fighter();
    virtual ~Fighter();
    
    inline int getFighterId() { return m_pFighterId; }
    inline void setFighterId(int p_fighterId) { m_pFighterId = p_fighterId; }
    
    inline int getBlood() { return m_pBlood; }
    inline void setBlood(int p_blood) { m_pBlood = p_blood; }
    
    inline int getArmor() { return m_pArmor; }
    inline void setArmor(int p_armor) { m_pArmor = p_armor; }
    
    inline int getSpeed() { return m_pSpeed; }
    inline void setSpeed(int p_speed) { m_pSpeed = p_speed; }
    
    inline std::string getRes() { return m_pRes; }
    inline void setRes(std::string p_res) { m_pRes = p_res; }
    
    inline CCArray* getBullets() { return m_pbullets; }
    inline void addBullet(Bullet* p_bullet) { m_pbullets->addObject(p_bullet); }
    
};

#endif
